<div class="container px-0">
<nav class="navbar navbar-dark fixed-top bg-purple mx-auto">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#nav">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="{$path_root}">{:config('common.site_name')}</a>
  <span class="navbar-text">
    <a href="#search" data-toggle="collapse"><i class="fa fa-search"></i></a>
  </span>
  <div class="collapse w-100 h-100" id="nav">
    <hr class="w-100 mt-3 mb-0">
    <ul class="navbar-nav w-100 mb-0 d-flex flex-row flex-wrap">
      {volist name=":DcTermNavbar(['module'=>['in','common,user,cms'],'controll'=>['in',['navs','category','tag']],'type'=>'navbar','status'=>['in','normal,public']])" id="navbar"}
      <li class="nav-item {:cmsNavActive($module.$controll.$action, $term_id, $navbar['navs_active'], $navbar['navs_id'])}" id="navs-{$navbar.navs_id}">
        <a class="nav-link" href="{$navbar.navs_link}" target="{$navbar.navs_target}">{$navbar.navs_name|cmsSubstr=0,6,false}</a>
      </li>
      {/volist}
    </ul>
  </div>
  <form class="collapse bg-white w-100 h-100 rounded mt-3 mb-2 p-4" action="{:cmsUrlSearch('cms/search/index')}" method="post" id="search">
    <div class="input-group">
      <input class="form-control" type="text" name="searchText" id="searchText" placeholder="请输入关键字..." autocomplete="off" required>
      <div class="input-group-append">
        <button class="btn btn-purple" type="submit"><i class="fa fa-search"></i></button>
      </div>
    </div>
  </form>
</nav>
</div>